package work2.phone;

public class CallMenu extends PhoneMenu implements CallService{
    private int callTime;
    private int infoNum;
    private PhoneCard card;

    public PhoneCard getCard() {
        return card;
    }

    public int getCallTime() {
        return callTime;
    }

    public void setCallTime(int callTime) {
        this.callTime = callTime;
    }

    public int getInfoNum() {
        return infoNum;
    }

    public void setInfoNum(int infoNum) {
        this.infoNum = infoNum;
    }

    @Override
    void showInfo() {
        System.out.println("当前套餐   通话时长:" + callTime + " 短信条数:" + infoNum + "  每月消费:" + fee);
    }

    @Override
    public void setInfo(int callTime, PhoneCard card) {
        this.callTime  =callTime;
        this.card = card;
    }
}
